package org.example.crop.domain;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import java.util.Date;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

/**
 * 
 * @TableName t_stash_crop
 */
@TableName(value ="t_stash_crop")
@Data
public class StashCrop implements Serializable {
    /**
     * 
     */
    @TableId(type = IdType.AUTO)
    private Integer id;


    /**
     * 农作物ID
     */
    private String cropId;

    /**
     * 数量
     */
    private Integer num;
    private Integer stsId;
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone = "GMT+8")
    private Date createDate;
    @TableField(exist = false)
    private String sname;
    @TableField(exist = false)
    private String cname;
    @TableField(exist = false)
    private String total;
    @TableField(exist = false)
    private Integer marketId;
    @TableField(exist = false)
    private String stsname;
    @TableField(exist = false)
    private String zname;
    @TableField(exist = false)
    private static final long serialVersionUID = 1L;

}